silence list, not sure if the port should always be set
authorGabriel Wicke <gwicke@users.mediawiki.org>
Tue, 15 Jun 2004 22:43:11 +0000 (22:43 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Tue, 15 Jun 2004 22:43:11 +0000 (22:43 +0000)
includes/memcached-client.php

index 2752180..17d9ecb 100644 (file)
@@ -667,7 +667,7 @@ class memcached
    function _dead_sock ($sock)
    {
       $host = array_search($sock, $this->_cache_sock);
-      list ($ip, $port) = explode(":", $host);
+      @list ($ip, $port) = explode(":", $host);
       $this->_host_dead[$ip] = time() + 30 + intval(rand(0, 10));
       $this->_host_dead[$host] = $this->_host_dead[$ip];
       unset($this->_cache_sock[$host]);